package com.seuic.hnapps.posdsdk.device_interface;

public interface PsamDevice extends BaseInterface {

    /**
     * Open Psam Card
     * make sure the psam card is rightly insert into the slot before use this method
     *
     * @return 0 to success, other to fail
     */
    String open();

    /**
     * Close the psam card
     * Make sure to call this method when you finish sending APDUs
     */
    void close();

    /**
     * Exchange apdu with psam card
     * Note that you should call open method first, before send any APDUs
     *
     * @param apdu The apdu command
     * @return The apdu response, or null for fail
     */
    String exchangeApdu(String apdu);
}
